
import {
  GETMOVIE
} from '../constant/countConst'

import store from '../store'

import { movieRequest } from '../api/getmovie'

 export const movieAction = ()=>{

  return async ()=>{
    const re =  await movieRequest()
    store.dispatch({
      type: GETMOVIE,
      data:re.data.data.list
    })
  }

 }